﻿using System.ComponentModel.DataAnnotations;

namespace jsclr.Models
{
    public class Program
    {
        public int ProgramId { get; set; }

        public string OwnerId { get; set; }

        [Required(ErrorMessage = "Please enter a name", AllowEmptyStrings = false)]
        public string Name { get; set; }
        
        [Required(ErrorMessage = "Please enter IL code")]
        public string Code { get; set; }
    }
}